//:c07:PriorityQueue2.cpp
// Changing the priority.
#include <cstdlib>
#include <ctime>
#include <functional>
#include <iostream>
#include <queue>
using namespace std;

int main(void)
{
    priority_queue<int, vector<int>, greater<int>> pqi;
    srand(time(0));
    for (int i = 0; i < 100; i++)
    {
        pqi.push(rand() % 25);
    }

    while (!pqi.empty())
    {
        cout << pqi.top();
        pqi.pop();
    }
}